package org.summerframework.component.security.permissions.service.dto;

import org.summerframework.core.page.PaginationQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * user_permissions
 * @author
 */
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
public class UserPermissionsQueryDTO extends PaginationQuery {
    /**
     * 主键
     */
    @ApiModelProperty(value = "根据主键排序")
    private Boolean orderById;

    /**
     * 权限名称
     */
    @ApiModelProperty(value = "模糊查询权限名称")
    private String searchName;

    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称")
    private String name;

    /**
     * 权限编码
     */
    @ApiModelProperty(value = "模糊查询权限编码")
    private String searchCode;

    /**
     * 权限编码
     */
    @ApiModelProperty(value = "权限编码")
    private String code;

    /**
     * 权限类型
     */
    @ApiModelProperty(value = "权限类型")
    private Integer type;

    /**
     * 上级id
     */
    @ApiModelProperty(value = "上级id")
    private Long parentId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "根据排序排序")
    private Boolean orderBySortIndex;

    /**
     * 状态  1: 正常  0: 禁用
     */
    @ApiModelProperty(value = "状态  1: 正常  0: 禁用")
    private Integer status;

    /**
     * 是否系统 1:是 0:否
     */
    @ApiModelProperty(value = "是否系统 1:是 0:否")
    private Integer isSystem;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "根据创建时间排序")
    private Boolean orderByCreateTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Long updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "根据更新时间排序")
    private Boolean orderByUpdateTime;

    @ApiModelProperty(value = "根据更新时间排序")
    private Integer isLazy;
}
